#! /bin/sh

# This little script builds the html. -c means clean first, -g means get the
# latest SAM version.

if [ "$1" = "-c" ]; then
    shift
    make clean
fi

if [ "$1" = "-g" ]; then
    ./get_latest
fi

# Get the name of the latest tarball, and update the Installation instructions.

SAMLATEST=`cat SAMLATEST`

sed -e "s/@SAMLATEST@/$SAMLATEST/g" < Install_template.txt > Install.txt

make html
